package com.zjw.mybatis.model;

public class Student {

	private long id;
	private String name;
	private char sex;
	
	private Classroom classroom;

	public Student() {
		super();
	}

	public Student(String name, char sex, Classroom classroom) {
		super();
		this.name = name;
		this.sex = sex;
		this.classroom = classroom;
	}

	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public char getSex() {
		return sex;
	}

	public void setSex(char sex) {
		this.sex = sex;
	}

	public Classroom getClassroom() {
		return classroom;
	}

	public void setClassroom(Classroom classroom) {
		this.classroom = classroom;
	}

	@Override
	public String toString() {
		return "Student [id=" + id + ", name=" + name + ", sex=" + sex
				+ ", classroom=" + classroom + "]";
	}
	
}
